<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
</head>
<body>
    <script>document.write("你好！")
    </script>
    </body>
</html>

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
</head>
<body>
    <h1>我的第一个Javascript</h1>
    <p id="demo">Javascript可以触发事件，就像点击按钮。</p>
    <script>
        function myFunction()
        {
            document.getElementById("demo").innerHTML="hellwo javascript!";
        }
        </Script>
        <button type="button" onclick="myFunction()">点我</button>
</body></html>


